package adventure.commands;

import adventure.*;
import player.*;

/**
 *
 * @author Michael Hanns
 *
 */
public class Equip extends AbstractCommand {

    public Equip(Adventure a) {
        super(a, new String[]{"EQUIP"});
    }

    @Override
    public String validateAndExecute(Player p, String[] args) {
        if (args.length == 1) {
            return "Equip what?";
        } else {
            return p.equip(Util.consolidateArguments(args));
        }
    }
}
